/* Container styling */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1780px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.expired-label {
    display: none;
}

/* Card styling */
.card {
    background-color: #4b4e55;
    width: 160px;
    height: 415px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0px;
}

.card-inner-container {
    flex-grow: 1;
    width: 158px;
    height: 174px;
}

.card-img {
    width: 158px;
    height: 200px;
    top: 0;
    border-radius: 0px;
}

.card-title {
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0%;
    padding: 0px;
    margin-top: 0.5%;

}

.card-subtitle {
    font-size: 15.5px;
    color: #b0b3b8;
    text-align: center;
}

.card-text {
    font-size: 15px;
    color: #ffffff;
    text-align: center;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: calc(1.4em * 6);
    /* Fallback for older browsers */
}

.articles-grid {
    display: grid;
    gap: 20px;
    /* spacing between cards */
    width: 200px;
    /* adjust as needed */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    scale: 95%;
    position: relative;
}

.ad-card-text {
    font-size: 15px;
    color: #ffffff;
    text-align: center;

    display: -webkit-box;
    -webkit-line-clamp: 10;
    /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: calc(1.4em * 6);
    /* Fallback for older browsers */
}


.card:hover {
    transform: scale(1.03);
    box-shadow: 0px 12px 24px rgba(95, 236, 255, 0.5);
}

/* Triangle base */
.triangle-wrapper {
    position: absolute;
    top: 0;
    z-index: 9;
    width: 0;
    height: 0;
}

.triangle-inner {
    width: 0;
    height: 0;
    border-style: solid;
}

/* Triangle label text */
.triangle-label {
    position: absolute;
    font-size: 15px;
    font-weight: 600;
}

/* Right triangle */
.triangle-wrapper-right {
    right: 0;
}

.triangle-wrapper-right .triangle-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 60px 0 0 60px;
    /* same shape as left triangle */
    border-color: #222627ab transparent transparent transparent;
}

/* text */

.triangle-wrapper-right .triangle-label {
    position: absolute;
    color: #ffffff;
    top: -52px;
    right: 5px;
    transform: rotate(50deg);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* Left triangle */
.triangle-wrapper-left {
    left: 0;
}

.triangle-wrapper-left .triangle-inner {
    position: absolute;
    top: 50;
    right: 50;
    width: 50;
    height: 50;
    border-style: solid;
    /* same shape as left triangle */
    border-width: 60px 60px 0 0;
    border-color: #222627ab transparent transparent transparent;
}

.triangle-wrapper-left .triangle-label {
    position: absolute;
    color: #ffffff;
    top: -50px;
    left: 3px;
    transform: rotate(-45deg);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}


.blurred-img {
    position: relative;
    background-image: url(imageName-small.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Pulsing overlay */
.blurred-img::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: white;
    opacity: 0;
    animation: pulse 2.5s infinite;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.1;
    }

    100% {
        opacity: 0;
    }
}

/* Hide the overlay when loaded */
.blurred-img.loaded::before {
    animation: none;
    opacity: 0;
}

.blurred-img img {
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 250ms ease-in-out;
}

.blurred-img.loaded img {
    opacity: 1;
}


.skeleton {
    opacity: .7;
    animation: skeleton-loading 1.5s infinite linear;
}

.skeleton-text {
    width: 100%;
    height: .5rem;
    margin-bottom: .25rem;
    border-radius: .125rem;
}

.skeleton-text:last-child {
    margin-bottom: 0;
    width: 80%;
}


@keyframes skeleton-loading {
    0% {
        background-color: #262C30;
    }

    100% {
        background-color: #4b4e55;
    }
}

/* Button group */
.btn-group {
    justify-content: center;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}